<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{:lang('login')} - {:config('dbconfig.sys.login_title')}</title>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
{load href="/static/global/bootstrap/css/bootstrap.min.css" /}
{load href="/static/global/font-awesome/css/font-awesome.min.css" /}
{load href="/static/system/dist/css/AdminLTE.min.css" /}
{load href="/static/global/jquery/jquery-2.2.3.min.js" /}
{load href="/static/global/bootstrap/js/bootstrap.min.js" /}
{load href="/static/global/layer/layer.js" /}
{load href="/static/global/jquery/jquery.form.js" /}
{load href="/static/system/dist/js/login.js" /}
<!--[if lt IE 9]>
{load href="/static/global/common/js/html5shiv.min.js" /}
{load href="/static/global/common/js/respond.min.js" /}
<![endif]-->
<style>
.login-page{background-image:url("{:config('dbconfig.sys.login_bg')}");}
.has-feedback .form-control{padding-right:12px;border:1px solid #999;border-radius:3px;background:rgba(0, 0, 0, 0.3);color:#999;box-shadow:0 0 3px #fff}
</style>
</head>
<body class="hold-transition login-page">
<div class="login-box">
    <div class="login-logo">{:config('dbconfig.sys.login_image')}</div>
    <div class="login-box-body">
        <form action="{:url('Login/checkLogin')}" method="post" onsubmit="return false" >
            {if cookie('admin_username')}
            <div class="form-group has-feedback text-center">{:cookie('admin_username')}</div>
            <div class="form-group has-feedback">
                <input type="password" class="form-control" name="password" placeholder="{:lang('login_lock_text')}">
            </div>
            <div class="form-group has-feedback row captcha">
                <div class="col-xs-6"><input class="form-control" name="captcha" placeholder="{:lang('captcha')}"></div>
                <div class="col-xs-6">
                    <img src="{:captcha_src()}" id="captcha" alt="captcha" onclick="this.src='{:captcha_src()}?rnd=' + Math.random();" />
                </div>
            </div>
            <div class="form-group has-feedback">
                <button type="submit" class="btn btn-success btn-block login" data-loading-text="&lt;i class='fa fa-spinner fa-spin '&gt;&lt;/i&gt; {:lang('login_lock_btn')}">{:lang('login_lock_btn')}</button>
            </div>
            {else /}
            <div class="form-group has-feedback">
                <input type="text" class="form-control" name="username" placeholder="{:lang('username')}">
            </div>
            <div class="form-group has-feedback">
                <input type="password" class="form-control" name="password" placeholder="{:lang('password')}">
            </div>
            <div class="form-group has-feedback row captcha">
                <div class="col-xs-6"><input class="form-control" name="captcha" placeholder="{:lang('captcha')}"></div>
                <div class="col-xs-6">
                    <img src="{:captcha_src()}" id="captcha" alt="captcha" onclick="this.src='{:captcha_src()}?rnd=' + Math.random();" />
                </div>
            </div>
            <div class="form-group has-feedback">
                <button type="submit" class="btn btn-success btn-block login" data-loading-text="&lt;i class='fa fa-spinner fa-spin '&gt;&lt;/i&gt; {:lang('login')}">{:lang('login')}</button>
            </div>
            {/if}
        </form>
    </div>
</div>
</body>
</html>